package com.jianbo.proxy.util;

import java.util.HashMap;
import java.util.Map;

public class Context {

    private static Map<String, Object> map = new HashMap<>();
    
    public static <T> T put(T t) {
        map.put(t.getClass().getName(), t);
        return t;
    }

    @SuppressWarnings("all")
    public static <T> T get(Class<?> clazz) {
        String beanName = clazz.getName();
        return (T) map.get(beanName);
    }
}
